package net.cc.jsy.entity;

/**
 *
 *
 * @author jingshiyu
 *
 * @date 2021.11.16 17:48:17
 *
 * @desc
 */
public class BaseHttpResult<T> {
    /**
     * 是否成功
     */
    private boolean success;
    /**
     * 系统间描述信息
     */
    private String interMsg;
    /**
     * 可展示的提示信息
     */
    private String hint;
    /**
     * 返回数据
     */
    private T data;

    public BaseHttpResult() {
    }

    /**
     * 构造方法
     */
    public BaseHttpResult(boolean success, String interMsg, String hint, T data) {
        super();
        this.success = success;
        this.interMsg = interMsg;
        this.hint = hint;
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getInterMsg() {
        return interMsg;
    }

    public void setInterMsg(String interMsg) {
        this.interMsg = interMsg;
    }

    public String getHint() {
        return hint;
    }

    public void setHint(String hint) {
        this.hint = hint;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
